package com.tianji.learning.service;

import com.tianji.api.dto.trade.OrderBasicDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.entity.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.pojo.LearningPlanDTO;
import com.tianji.learning.pojo.LearningPlanPageVO;
import com.tianji.learning.vo.LearningLessonVO;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author xjs
 */
public interface ILearningLessonService extends IService<LearningLesson> {
    /**
     * 订单支付成功以后，把course插入到课表
     * */
    void onOrderPaySuccess(OrderBasicDTO dto);

    PageDTO<LearningLessonVO> pageQuery(PageQuery query);

    LearningLessonVO now();

    void deleteCourseFromLesson(Long userId, Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    Long isLessonValid(Long courseId);

    LearningLessonVO getLessonByUserIdCourseId(Long userId, Long courseId);

    LearningPlanPageVO getPlans(PageQuery pageQuery);

    void setPlans(LearningPlanDTO dto);
}
